package com.quxuecx.springcloud.service.impl;

import com.quxuecx.springcloud.dao.PaymentDao;
import com.quxuecx.springcloud.entities.Payment;
import com.quxuecx.springcloud.service.IPaymentService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: shaofeer
 * <p>
 * @qq: 337081267
 * <p>
 * @CSDN: http://blog.csdn.net/pyfysf
 * <p>
 * @blog: http://wintp.top
 * <p>
 * @email: shaofeer@163.com
 * <p>
 * @time: 2020/6/28
 */
@Service
public class PaymentServiceImpl implements IPaymentService {

    @Autowired
    private PaymentDao mPaymentDao;

    @Override
    public int save(Payment payment) {
        return mPaymentDao.save(payment);
    }

    @Override
    public Payment getById(Long id) {
        return mPaymentDao.getById(id);
    }
}
